package com.yctan.base.exception;


import com.yctan.base.entity.WebResult;

/**
 * @author sec
 * @create 2020-06-19 17:00
 **/
public class ApiErrorResponse extends WebResult {
    private static final long serialVersionUID = -4110967301982607497L;

    public ApiErrorResponse(int code, String msg) {
        super();
        this.setCode(code);
        this.setMsg(msg);
    }

    public ApiErrorResponse() {
        this(FinalCode.REQUEST_FAILED, null);
    }

    public ApiErrorResponse(String msg) {
        this(FinalCode.REQUEST_FAILED, msg);
    }
}